package com.chenfan.common.extension.dict;

import org.apache.commons.lang3.tuple.ImmutablePair;

/**
 * @author wulg
 * @date 2022/9/30
 */
@FunctionalInterface
public interface ImmutableDictTranslator<P,R> {

    /**
     * 翻译
     * @param beforeValue
     * @param afterValue
     * @return
     */
    ImmutablePair<R, R> translate(P beforeValue, P afterValue);
}